/*
 * Instruction3C.java
 *
 * Created on March 22, 2007, 9:38 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package moto9s12sim;

/**
 *
 * @author Fergus Earnshaw
 */
public class Instruction3C extends Instruction {
    
    /** Creates a new instance of Instruction3C */
    public Instruction3C() {
        this.strAssemblyCode = "WAVR";
        this.bCodes = new byte[1];
        this.bCodes[0] = (byte)Integer.parseInt("3C",16);
    }
    
    public boolean excute(M9S12 cpu)
    {
        this.shAddr = cpu.PC.getRegister();
        cpu.PC.inc();
        
        //TO DO CODE INSTRUCTION
        
        //to do set flags        
        //cpu.CC.setV(false);
        //cpu.CC.setC(false);
        
        //cpu.CC.setN(false);
        //cpu.CC.setZ(false);
        
        
        printInstruction(cpu);
        //I think the first invalid instruction should halt excution
        return true;
    }  
}
    